﻿// =====================================================================
// <copyright file="EnumHelper.cs" author="David R. Guindo">
// 	Copyright (C) 2013. All rights reserved.
// </copyright>
// =====================================================================
// This code is released under the terms of the Apache 2.0 license, 
// http://apache.org/licenses/LICENSE-2.0.html
// =====================================================================

namespace AppBlock
{
    using System;

    public static class EnumHelper
    {
        public static object[] GetValues(Type enumType)
        {
            return (object[]) Enum.GetValues(enumType);
        }

        public static T[] GetValues<T>()
        {
            return Enum.GetValues(typeof (T)) as T[];
        }
    }
}